#include <stdio.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>


int main(void){
    
    in_addr_t addr;
    addr = inet_addr("192.168.1.222");
    printf("addr == 0x%x\n",addr);
    struct in_addr temp;
    temp.s_addr = addr;
    printf("IP=%s\n",inet_ntoa(temp));

    return 0;
}